#include <iostream>
#include <gflags/gflags.h>

using namespace std;

DEFINE_bool(reuse_addr,true,"是否启用网络地址复用");
DEFINE_string(ip,"127.0.0.1","这是监听服务器的监听ip地址");
DEFINE_int32(port,8080,"这是服务器的监听端口");

int main(int argc,char* argv[])
{
    google::ParseCommandLineFlags(&argc,&argv,true);

    cout << FLAGS_ip << endl;
    cout << FLAGS_port << endl;
    cout << FLAGS_reuse_addr <<endl;


    return 0;
}
